package br.com.social.mobile.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="TB_PROFILE")
public class Profile extends AbstractEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6077585422396981440L;

	@Column(name="DS_LOGIN")
    private String dsLogin;

	@Column(name="DS_PASSWORD")
    private String dsPassword;
	
	@Column(name="DS_NAME")
    private String dsName;	
	
	@Column(name="NU_TYPE")
    private Integer nuType;
	
	@Column(name="DT_LAST_LOGIN")
    private Date dtLastLogin;	
	
	@Column(name="NU_CRS_PROFILE")
    private Integer nuCrsProfile;
	
	@Column(name="DS_SEXLOG")
    private String dsSexLog;	

	@Column(name="DS_EMAIL")
    private String dsEmail;		
	
	@Column(name="NU_COUNT_LOGIN")
    private Integer nuCountLogin;	
	
	@Column(name="DT_LAST_LOGIN_CRS")
    private Date dtLastLoginCrs;		
	
	@Column(name="DS_IMG_PROFILE")
	private String dsImgProfile;    
	
	@Column(name="IS_ACTIVATE")
	private String dsActivate = "S";    	
	
	@Column(name="IS_CRS_PROFILE_VERIFIED")
	private String isCrsProfileVerified = "N";  
	
	@Column(name="IS_SEXLOG_VERIFIED")
	private String isSexLogVerified = "N";  

		
	/*
	@OneToMany(fetch=FetchType.EAGER)
    @JoinColumn(name = "NU_ID_PROFILE", referencedColumnName = "NU_ID")
	private List<User> users;
	*/
	public String getDsLogin() {
		return dsLogin;
	}

	public void setDsLogin(String dsLogin) {
		this.dsLogin = dsLogin;
	}

	public String getDsPassword() {
		return dsPassword;
	}

	public void setDsPassword(String dsPassword) {
		this.dsPassword = dsPassword;
	}

	public Integer getNuType() {
		return nuType;
	}

	public void setNuType(Integer nuType) {
		this.nuType = nuType;
	}

	public Date getDtLastLogin() {
		return dtLastLogin;
	}

	public void setDtLastLogin(Date dtLastLogin) {
		this.dtLastLogin = dtLastLogin;
	}

	public Integer getNuCrsProfile() {
		return nuCrsProfile;
	}

	public void setNuCrsProfile(Integer nuCrsProfile) {
		this.nuCrsProfile = nuCrsProfile;
	}

	public Integer getNuCountLogin() {
		return nuCountLogin;
	}

	public void setNuCountLogin(Integer nuCountLogin) {
		this.nuCountLogin = nuCountLogin;
	}

	public String getDsName() {
		return dsName;
	}

	public void setDsName(String dsName) {
		this.dsName = dsName;
	}

	public Date getDtLastLoginCrs() {
		return dtLastLoginCrs;
	}

	public void setDtLastLoginCrs(Date dtLastLoginCrs) {
		this.dtLastLoginCrs = dtLastLoginCrs;
	}

	public String getDsImgProfile() {
		return dsImgProfile;
	}

	public void setDsImgProfile(String dsImgProfile) {
		this.dsImgProfile = dsImgProfile;
	}
/*
	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}
*/
	public String getDsActivate() {
		return dsActivate;
	}

	public void setDsActivate(String dsActivate) {
		this.dsActivate = dsActivate;
	}

	@Override
	public String toString() {
		return "Profile [dsLogin=" + dsLogin + ", dsName=" + dsName
				+ ", nuType=" + nuType + ", dtLastLogin=" + dtLastLogin
				+ ", nuCrsProfile=" + nuCrsProfile + ", nuCountLogin="
				+ nuCountLogin + ", dtLastLoginCrs=" + dtLastLoginCrs
				+ ", dsImgProfile=" + dsImgProfile + ", dsActivate="
				+ dsActivate + "]";
	}

	public String getDsSexLog() {
		return dsSexLog;
	}

	public void setDsSexLog(String dsSexLog) {
		this.dsSexLog = dsSexLog;
	}

	public String getDsEmail() {
		return dsEmail;
	}

	public void setDsEmail(String dsEmail) {
		this.dsEmail = dsEmail;
	}

	public String getIsCrsProfileVerified() {
		return isCrsProfileVerified;
	}

	public void setIsCrsProfileVerified(String isCrsProfileVerified) {
		this.isCrsProfileVerified = isCrsProfileVerified;
	}

	public String getIsSexLogVerified() {
		return isSexLogVerified;
	}

	public void setIsSexLogVerified(String isSexLogVerified) {
		this.isSexLogVerified = isSexLogVerified;
	}	
}